﻿using System.ServiceModel;
using System.ServiceModel.Channels;

namespace FXC.SL.CS.Util
{
    public class FXCServiceClientManager
    {
        public static FXC.SL.FXCenterService.FXCServiceClient CreateProxy()
        {
            EndpointAddress address = new EndpointAddress(App.FXCServiceURL);
            PollingDuplexHttpBinding binding = new PollingDuplexHttpBinding(PollingDuplexMode.SingleMessagePerPoll);
            binding.MaxBufferSize = 2147483647;
            binding.MaxReceivedMessageSize = 2147483647;
            return new FXCenterService.FXCServiceClient(binding, address);
        }
    }
}
